﻿@using UcAsp.Net.Model;
@using UcAsp.Net.BLL;
@using UcAsp.Net.Comm
@using Config = UcAsp.Net.BLL.SettingConfig;
@{
    Subjects model = PageData["subject"];
    Categories cate = PageData["categories"];
    Subjects subject=SubjectsConfig.GetSubjects(model.SubjectId, cate.ID, Config.Theme(Request.UserAgent));
    List<Categories> list = new CategoriesBLL().GetCategoriesSubject(subject.Categories);
}
<div class="categories_title" style="float: left; margin: 0px; padding: 0px;">
    <div>@subject.SubjectName</div>
    <div>
        @foreach(Categories menucate in list)
        {
            <a href="/@menucate.ShowPath/index.shtml" title="@menucate.CategorieName">@menucate.CategorieName</a>
            }

        </div>
            @foreach (ArticelsViews art in ArticlesBLL.GetSubject(model.SubjectId, cate.ID, Config.Theme(Request.UserAgent)))
            {

                <a href="/@art.CagegorieShowPath/@(Utils.GetPagePath(art.ShowPath, art.ID)).shtml">
                    @(UcAsp.Net.Comm.Utils.ClearPart(art.Title, 20))
                </a><br />
    }
    </div>

